package ${package}.dto.${classname}.excel;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.hutool.core.util.StrUtil;
import lombok.Data;

import java.io.Serializable;
<#list imports as i>
import ${i!};
</#list>

/**
 * ${tableComment}excel导入参数配置
 * 参考文档：http://doc.wupaas.com/docs/easypoi/easypoi-1c0u96flii98v
 *
 * @author ${author} ${email}
 * @since ${version} ${date}
 */
@Data
public class ${ClassName}ExcelImportDto implements Serializable {

<#list columnList as column>
	<#if column.form>
	<#if column.columnComment!?length gt 0>
	/**
	 * ${column.columnComment}
	 */
	@Excel(name = "${column.columnComment}")
	</#if>
	private ${column.attrType} ${column.attrName};

	</#if>
</#list>
	/**
	 * excel空行判定，用于导入时去除空行
	 * @return 是否空行
	 */
	public boolean isEmpty() {
		//根据必填字段或逻辑修改空行判定方式
		if (StrUtil.isAllBlank(this.id)) {
			return true;
		}
		return false;
	}
}